from django.urls import path
from user.views import *

urlpatterns = [

    # 生成图片验证码
    path("imgcode/<str:uuid>/", UserView.as_view({"get": "img"})),

    # 短信验证码
    path('smscode/', SendCode.as_view({'post':'sms_code'})),

    # 员工入职
    path("reg/", UserView.as_view({"post": "reg"})),

    # 员工登录
    path("login/<str:uuid>/", UserView.as_view({"post": "login"})),

    # 忘记密码有短信验证码
    path("userinfo/", UserView.as_view({"put": "upuser"})),

    # 忘记密码
    path("forgotpwd/", UserView.as_view({"put": "upusers"})),

]
